//
//  HWCustomRemarkSheet.h
//  HuaWan
//
//  Created by HuaWan  on 2022.
//  Copyright © 2022 HuaWan . All rights reserved.
//

#import "BaseView.h"

@class HWCustomRemarkSheetModel;
@class HWCustomRemarkSheet;

@protocol HWCustomRemarkSheetDelegate <NSObject>

- (void)customRemarkSheet:(HWCustomRemarkSheet *)sheet buttonAction:(UIButton *)sender;
- (void)customRemarkSheet:(HWCustomRemarkSheet *)cell textView:(UITextView *)textView;

@end

@interface HWCustomRemarkSheet : BaseView <UITextViewDelegate>

@property (nonatomic,weak) id<HWCustomRemarkSheetDelegate> delegate;
@property (weak, nonatomic) IBOutlet UIView *maskView;
@property (weak, nonatomic) IBOutlet UIView *myView;
@property (weak, nonatomic) IBOutlet UIImageView *icoImageView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *placeholderLabel;//提示
@property (weak, nonatomic) IBOutlet UITextView *textView;//输入框
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *viewCenterY;
@property (nonatomic,strong) HWCustomRemarkSheetModel *model;//dic

- (void)setData:(id)data delegate:(id)delegate;

@end


#pragma mark - model

@interface HWCustomRemarkSheetModel : NSObject

@property (nonatomic,copy) NSString *ico;
@property (nonatomic,copy) NSString *name;
@property (nonatomic,copy) NSString *text;
@property (nonatomic,copy) NSString *tip;
@property (nonatomic,copy) NSString *max;

+ (HWCustomRemarkSheetModel *)ittemModelWithIco:(NSString *)ico name:(NSString *)name text:(NSString *)text tip:(NSString *)tip max:(NSString *)max;
    
@end
